﻿using Ganss.Excel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;

namespace RndMaterialDisposalService.Models
{
    public class CapitalTransferReportFormModel
    {
        [Key]
        [Ganss.Excel.Ignore]
        public string Key { get; set; }
        /// <summary>
        /// 单号
        /// </summary>
        [Ganss.Excel.Column(1,"单号")]
        public string ApplicationNumber { get; set; }
        /// <summary>
        /// 流程实例Id
        /// </summary>
        [Ganss.Excel.Ignore]
        public string ProcInstId { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Ganss.Excel.Ignore]
        public string ApplicantEmployeeNumber { get; set; }
        /// <summary>
        /// 资产编号
        /// </summary>
        [Ganss.Excel.Column(2,"资产编号")]
        public string AssetNo { get; set; }
        /// <summary>
        /// 公司段
        /// </summary>
        [Ganss.Excel.Column(3,"公司段")]
        public string CompanyType { get; set; }
        /// <summary>
        /// 当前处理人
        /// </summary>
        [Ganss.Excel.Column(4,"当前处理人")]
        public string ApplicantName { get; set; }
        /// <summary>
        /// 
        /// </summary>
        [Ganss.Excel.Column(5,"转出人Id")]
        public string OutDeptUserID { get; set; }
        /// <summary>
        /// 转出人
        /// </summary>
        [Ganss.Excel.Column(6,"转出人")]
        public string OutDeptUserName { get; set; }
        /// <summary>
        /// 转出部门编码
        /// </summary>
        [Ganss.Excel.Column(7,"转出部门编码")]
        public string OutDeptDeptCode { get; set; }
        /// <summary>
        /// 转出部门(大部门)
        /// </summary>
        [Ganss.Excel.Column(8,"转出部门(大部门)")]
        public string OutDeptFirstDept { get; set; }
        /// <summary>
        /// 转出部门(小部分)
        /// </summary>
        [Ganss.Excel.Column(9,"转出部门(小部分)")]
        public string OutDeptSecondDept { get; set; }
        /// <summary>
        /// 转入人Id
        /// </summary>
        [Ganss.Excel.Column(10,"转入人Id")]
        public string InputDeptUserID { get; set; }
        /// <summary>
        /// 转入人
        /// </summary>
        [Ganss.Excel.Column(11,"转入人")]
        public string InputDeptUserName { get; set; }
        /// <summary>
        /// 转入部门编码
        /// </summary>
        [Ganss.Excel.Column(12,"转入部门编码")]
        public string InputDeptDeptCode { get; set; }
        /// <summary>
        /// 转入部门(大部门)
        /// </summary>
        [Ganss.Excel.Column(13,"转入部门(大部门)")]
        public string InputDeptFirstDept { get; set; }
        /// <summary>
        /// 转入部门(小部分)
        /// </summary>
        [Ganss.Excel.Column(14,"转入部门(小部分)")]
        public string InputDeptSecondDept { get; set; }
        /// <summary>
        /// 当前环节
        /// </summary>
        [Ganss.Excel.Column(15,"当前环节")]
        public string CurrentStatus { get; set; }
        /// <summary>
        /// 申请时间
        /// </summary>
        //[DataFormat(0xf)]
        [Ganss.Excel.Ignore]
        public DateTime? CreatedDate { get; set; }

        /// <summary>
        /// 申请时间-导出
        /// </summary>
        [Ganss.Excel.Column(16,"申请时间")]
        public string? DcCreatedDate => CreatedDate?.ToString("yyyy-MM-dd");

        /// <summary>
        /// 存放位置
        /// </summary>
        [Ganss.Excel.Column(17,"存放位置")]
        public string StorageLocation { get; set; }
        /// <summary>
        /// 转出部门一级资产管理员
        /// </summary>
        [Ganss.Excel.Column(18, "一级资产管理员")]
        public string OutDeptFirstAdmin { get; set; }
        /// <summary>
        /// 转入部门一级资产管理员
        /// </summary>
        [Ganss.Excel.Ignore]
        public string InputDeptFirstAdmin { get; set; }
        /// <summary>
        /// 产品段
        /// </summary>
        [Ganss.Excel.Column(19, "产品段")]
        public string ProductSegment { get; set; }
    }
}
